home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / text1 / wsuipa / iromanu.mf < prev    next >
Text File  |  1991-10-23  |  14KB  |  309 lines

  1. % This is IROMANU.MF in text format, as of Apr 22, 1989.
  2. % Computer Modern Roman upper case:
  3. % These letters were originally coded by D. E. Knuth in November, 1979,
  4. % inspired by the Monotype faces used in {\sl The Art of Computer Programming}.
  5. % Sans serif designs by Richard Southall were added in April, 1982.
  6. % The programs were revised for the new \MF\ conventions in 1985.
  7.  
  8. % Character codes \0101 through \0132 are generated.
  9.  
  10. cmchar "The letter D";
  11. beginchar(oct"24",13.5u#,cap_height#,0);
  12. italcorr .7cap_height#*slant-.5u#;
  13. adjust_fit(cap_serif_fit#,0);
  14. pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem',0);
  15. lft x1l=lft x2l=hround max(2u,3u-.5cap_stem'); top y1=h; bot y2=0;
  16. filldraw stroke z1e--z2e; % stem
  17. penpos3(cap_band,90); penpos4(cap_band,90);
  18. penpos5(cap_curve-stem_corr,0);
  19. penpos6(cap_band,-90); penpos7(cap_band,-90);
  20. z3r=top z1; y4=y3; y5=.51[y4,y6]; y6=y7;
  21. z7r=bot z2; x4=x6=.5w+.25u; x5r=hround(w-u);
  22. x4l:=x6l:=x4-.25cap_curve;
  23. fill stroke z3e..pulled_arc.e(4,5) & pulled_arc.e(5,6)..z7e;  % lobe
  24. if serifs: nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut);  % upper serif
  25.  nodish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); fi  % lower serif
  26. math_fit(0,ic#-.5u#); penlabels(1,2,3,4,5,6,7); endchar;
  27.  
  28. cmchar "The letter G";
  29. if serifs: beginchar(oct"036",14u#,cap_height#,0);
  30.  italcorr cap_height#*slant-1.5u#-.5cap_serif_fit#;
  31.  adjust_fit(0,.5cap_serif_fit#);
  32.  pickup tiny.nib; pos0(cap_stem,0); pos7(cap_stem,0);
  33.  rt x0r=hround(w-2u); y0=good.y(.1[bar_height,x_height]+1); x7=x0;
  34.  pickup fine.nib;
  35.  if hefty: bot y7=0; pos5(cap_stem,0); x5=x0; top y5=tiny.top y0;
  36.  else: pos5(cap_hair,0); pos8(cap_stem,0);
  37.   y7=.5bar_height; z5l=z8l; z8=z7; x9=x8r; bot y9=0;
  38.   filldraw z8l{down}..{4(x9-x8),y9-y8}z9--z8r--cycle; fi % spur
  39.  pos1(cap_hair,0); pos2(cap_band,90);
  40.  pos3(cap_curve,180); pos4(cap_band,270);
  41.  rt x1r=hround(w-2u); lft x3r=hround u; x2=x4=.55[x3,x1];
  42.  top y2r=h+o; bot y4r=-o; y3=.5[y2,y4];
  43.  bot y1=min(vround max(.6h,x_height-.5vair),bot y2l-eps);
  44.  (x2l',y2l)=whatever[z2r,z1l]; x2l:=min(x2l',x2l+.5u);
  45.  (x4l',y4l)=whatever[z4r,z5l]; x4l:=min(x4l',x4l+.5u);
  46.  filldraw stroke z1e{x2-x1,10(y2-y1)}
  47.   ...pulled_arc.e(2,3) & pulled_arc.e(3,4)...z5e{up}; % arc
  48.  pos6(.3[fine.breadth,cap_hair],0); x6r=x1r; top y6=h+o;
  49.  x1r-x1'=2cap_curve-fine; y1'=y1;
  50.  path upper_arc; upper_arc=z1{x2-x1,10(y2-y1)}..z2{left};
  51.  numeric t; t=xpart(upper_arc intersectiontimes (z6l--z1'));
  52.  filldraw z1r--z6r--z6l--subpath(t,0) of upper_arc--cycle; % barb
  53.  pickup tiny.nib; filldraw stroke z0e--z7e;  % stem
  54.  dish_serif(0,7,a,1/3,max(cap_jut,2.25u),b,1/3,1.25u);  % serif
  55.  math_fit(-.3cap_height#*slant-.5u#,ic#);
  56. else: beginchar(oct"36",12u#,cap_height#,0);
  57.  italcorr cap_height#*slant-.5u#;
  58.  adjust_fit(0,0);
  59.  pickup fine.nib; pos1(1.2flare,80); pos2(slab,90);
  60.  pos3(cap_curve,180); pos4(slab,270); pos5(flare,270);
  61.  rt x1r=hround(w-1.35u); x2=x4=.5w+u;
  62.  lft x3r=hround max(u,2u-.5cap_curve); rt x5l=hround(w-1.2u);
  63.  top y1r=vround .93h+o; top y2r=h+o; y3=.5h;
  64.  bot y4r=-o; bot y5r=vround .07h-o;
  65.  filldraw stroke rterm.e(2,1,right,.9,4)&super_arc.e(2,3)
  66.   & super_arc.e(3,4) & term.e(4,5,right,1,4); % arc and terminals
  67.  pos0(stem,0); pos7(stem,0);
  68.  z7r=z5r; x0=x7; top y0=1+vround .35[bar_height,x_height];
  69.  filldraw stroke z0e--z7e;  % stem
  70.  pos8(cap_bar,90); pos9(cap_bar,90);
  71.  z0r=z9r; y8=y9; lft x8=hround x4;
  72.  filldraw stroke z8e--z9e;  % bar
  73.  math_fit(-.3cap_height#*slant-.5u#,.5ic#); fi
  74. penlabels(0,1,1',2,3,4,5,6,7,8,9); endchar;
  75.  
  76. cmchar "The letter I";
  77. beginchar(oct"52",max(6u#,4u#+cap_stem#),cap_height#,0);
  78. italcorr cap_height#*slant-.25u#;
  79. adjust_fit(cap_serif_fit#,cap_serif_fit#);
  80. pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0);
  81. lft x1l=lft x2l=hround(.5w-.5cap_stem); top y1=h; bot y2=0;
  82. filldraw stroke z1e--z2e; % stem
  83. if serifs: dish_serif(1,2,a,1/3,1.05cap_jut,b,1/3,1.05cap_jut);  % upper serif
  84.  dish_serif(2,1,c,1/3,1.05cap_jut,d,1/3,1.05cap_jut);  fi % lower serif
  85. math_fit(0,.5ic#); penlabels(1,2); endchar;
  86.  
  87. cmchar "The letter small cap N";
  88. beginchar(oct"072",13u#+width_adj#,cap_height#,0);
  89. italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#);
  90. adjust_fit(cap_serif_fit#,cap_serif_fit#);
  91. numeric thin_stem; thin_stem=hround(fudged.hair+stem_corr);
  92. pickup tiny.nib; pos1(thin_stem,0); pos2(thin_stem,0);
  93. pos3(thin_stem,0); pos4(thin_stem,0);
  94. pickup tiny.nib; top y1=top y3=h; bot y2=bot y4=0;
  95. x1=x2; x3=x4; x1l=w-x3r;
  96. rt x3r=hround min(w-2u,w-3u+.5fudged.cap_stem);
  97. filldraw stroke z1e--z2e; % left stem
  98. filldraw stroke z3e--z4e; % right stem
  99. if hefty: penpos5(fudged.cap_stem,0); penpos6(fudged.cap_stem,0);
  100.  x5l=x1; x6r=x4; y5=h; y6=0;
  101.  numeric upper_notch,lower_notch;
  102.  upper_notch=h-cap_notch_cut; lower_notch=cap_notch_cut;
  103.  x1'=rt x1r; z1'=whatever[z5l,z6l]; x4'=lft x4l; z4'=whatever[z5r,z6r];
  104.  fill z5l..
  105.   if y1'<upper_notch: {right}(x1'+1,upper_notch){down}... fi
  106.   {z6-z5}diag_in(5l,6l,1,6r)--z6r..
  107.   if y4'>lower_notch: {left}(x4'-1,lower_notch){up}... fi
  108.   {z5-z6}diag_in(6r,5r,1,5l)--cycle;  % diagonal
  109. else: penpos5(whatever,0); penpos6(whatever,90);
  110.  z5l=z1l; z6l=z4l;
  111.  z7=z6l+(max(eps,cap_stem-3stem_corr-tiny),0) rotated (angle(z5l-z6l)-90);
  112.  z5r=z7+whatever*(z5l-z6l); z6r=z7+whatever*(z5l-z6l);
  113.  filldraw stroke z5e..z6e; fi  % diagonal
  114. if serifs: if hefty: serif(1,2,a,1/3,-cap_jut); % upper left serif
  115.  else: serif(5,6,a,1/3,-cap_jut); fi  % upper left serif
  116.  dish_serif(2,1,b,1/2,cap_jut,c,1/2,cap_jut)(dark); % lower left serif
  117.  dish_serif(3,4,e,1/2,cap_jut,f,1/2,cap_jut)(dark); fi  % upper right serif
  118. math_fit(0,max(.5ic#-.5u#,0)); penlabels(1,1',2,3,4,4',5,6,7); endchar;
  119.  
  120. cmchar "The letter barred I";
  121. beginchar(oct"53",max(6u#,4u#+cap_stem#),cap_height#,0);
  122. italcorr cap_height#*slant-.25u#;
  123. adjust_fit(cap_serif_fit#,cap_serif_fit#);
  124. pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0);
  125. lft x1l=lft x2l=hround(.5w-.5cap_stem); top y1=h; bot y2=0;
  126. filldraw stroke z1e--z2e; % stem
  127. if serifs: dish_serif(1,2,a,1/3,1.05cap_jut,b,1/3,1.05cap_jut);  % upper serif
  128.  dish_serif(2,1,c,1/3,1.05cap_jut,d,1/3,1.05cap_jut);  fi % lower serif
  129. math_fit(0,.5ic#);
  130. % bar
  131. pickup rule.nib;
  132. x10 = hround .1u; x11 = hround(w-x10);
  133. y10=.5[y1,y2]=y11;
  134. draw z10--z11;
  135. penlabels(1,2,10,11); endchar;
  136.  
  137. cmchar "The letter inverted small cap R";
  138. beginchar(oct"113",if serifs: 12u#+.5max(2u#,cap_curve#)
  139.  else:12.5u#-.5width_adj# fi,cap_height#,0);
  140. italcorr .75cap_height#*slant- if serifs: 1.75 else: .5 fi\\ u#;
  141. adjust_fit(cap_serif_fit#,0);
  142. pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem',0);
  143. lft x1l=lft x2l=hround max(2u,3u-.5cap_stem'); top y1=h; bot y2=0;
  144. filldraw stroke z1e--z2e; % stem
  145. penpos3(cap_band,90); penpos4(cap_band,90);
  146. penpos5(cap_curve if hefty:-3stem_corr fi,0);
  147. penpos6(vair,-90); penpos7(vair,-90);
  148. z3r=top z1; y4=y3; y5=.5[y4l,y6l]; y6=y7;
  149. x7=x2; y7l=vround(.5h+.5vair); x4=x6;
  150. if serifs: x4=.5w-.5u; x5r=hround(w-2.25u);
  151. else: x4=.5w+.5u; x5r=hround(w-u); fi
  152. x4l:=x6l:=x4-.125cap_curve;
  153. fill stroke z3e..pulled_arc.e(4,5) & pulled_arc.e(5,6)..z7e;  % lobe
  154. if serifs: pos6'(vair,-90); pos0(cap_stem,180);
  155.  pos8(cap_curve,180); pos9(vair,-90); pos10(hair,0);
  156.  z6'=z6; lft x0r=lft x8r=hround(x5-2/3u-.5cap_curve);
  157.  y8=1/3[y2,y7]; y0=3/5[y2,y7]; x9=.5[x8l,x10r];
  158.  bot y9r=-o; rt x10r=hround(w-.05u); y10=1/4[y2,y7];
  159.  filldraw stroke z6'e{right}..z0e---z8e....z9e{right}..z10e{up};  % tail
  160.  nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut);  % upper serif
  161.  dish_serif(2,1,c,1/3,cap_jut,d,1/3,cap_jut);  % lower serif
  162. else: penpos8(cap_stem-2stem_corr,0); penpos9(cap_stem,0);
  163.  x8=x6+.5u; y8=y6; x9r=hround(w-.5u); y9=0;
  164.  fill z8l--diag_end(8l,9l,.5,1,9r,8r)--z8r--cycle; fi  % tail
  165. math_fit(0,.75ic#);
  166. picture rvchar;
  167. if slant=0: rvchar=currentpicture rotatedabout((.5w,.5h),180)%
  168.         reflectedabout((.5w,0),(.5w,h));
  169.   else: rvchar=currentpicture rotatedabout((.58w,.5h),180)%
  170.         reflectedabout((.5w,0),(.5w,h));fi
  171. currentpicture:= rvchar;
  172. penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar;
  173.  
  174. cmchar "The letter small cap R";
  175. beginchar(oct"112",if serifs: 12u#+.5max(2u#,cap_curve#)
  176.  else:12.5u#-.5width_adj# fi,cap_height#,0);
  177. italcorr .75cap_height#*slant- if serifs: 1.75 else: .5 fi\\ u#;
  178. adjust_fit(cap_serif_fit#,0);
  179. pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem',0);
  180. lft x1l=lft x2l=hround max(2u,3u-.5cap_stem'); top y1=h; bot y2=0;
  181. filldraw stroke z1e--z2e; % stem
  182. penpos3(cap_band,90); penpos4(cap_band,90);
  183. penpos5(cap_curve if hefty:-3stem_corr fi,0);
  184. penpos6(vair,-90); penpos7(vair,-90);
  185. z3r=top z1; y4=y3; y5=.5[y4l,y6l]; y6=y7;
  186. x7=x2; y7l=vround(.5h+.5vair); x4=x6;
  187. if serifs: x4=.5w-.5u; x5r=hround(w-2.25u);
  188. else: x4=.5w+.5u; x5r=hround(w-u); fi
  189. x4l:=x6l:=x4-.125cap_curve;
  190. fill stroke z3e..pulled_arc.e(4,5) & pulled_arc.e(5,6)..z7e;  % lobe
  191. if serifs: pos6'(vair,-90); pos0(cap_stem,180);
  192.  pos8(cap_curve,180); pos9(vair,-90); pos10(hair,0);
  193.  z6'=z6; lft x0r=lft x8r=hround(x5-2/3u-.5cap_curve);
  194.  y8=1/3[y2,y7]; y0=3/5[y2,y7]; x9=.5[x8l,x10r];
  195.  bot y9r=-o; rt x10r=hround(w-.05u); y10=1/4[y2,y7];
  196.  filldraw stroke z6'e{right}..z0e---z8e....z9e{right}..z10e{up};  % tail
  197.  nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut);  % upper serif
  198.  dish_serif(2,1,c,1/3,cap_jut,d,1/3,cap_jut);  % lower serif
  199. else: penpos8(cap_stem-2stem_corr,0); penpos9(cap_stem,0);
  200.  x8=x6+.5u; y8=y6; x9r=hround(w-.5u); y9=0;
  201.  fill z8l--diag_end(8l,9l,.5,1,9r,8r)--z8r--cycle; fi  % tail
  202. math_fit(0,.75ic#);
  203. penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar;
  204.  
  205. cmchar "The letter U";
  206. beginchar(oct"127",13u#+.5width_adj#,cap_height#,0);
  207. italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#);
  208. if monospace: adjust_fit(cap_serif_fit#-.5u#,cap_serif_fit#-.5u#)
  209. else: adjust_fit(cap_serif_fit#,cap_serif_fit#) fi;
  210. pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0);
  211. pos2'(cap_stem,180); z2'=z2;
  212. pos3(cap_band,-90);
  213. pos4(cap_hair,0); pos5(cap_hair,0);
  214. x1=x2; x3=.5[x1,x5]; x4=x5; x1l=w-x5r;
  215. top y1=top y5=h; y2=y4=1/3h; bot y3r=-o;
  216. lft x1l=hround max(2u,3u-.5cap_stem);
  217. filldraw stroke z1e--z2e; % left stem
  218. filldraw stroke pulled_arc.e(2',3)
  219.  & pulled_arc.e(3,4)&z4e--z5e; % arc and right stem
  220. if serifs: dish_serif(1,2,a,1/3,cap_jut,b,1/3,cap_jut); % left serif
  221.  dish_serif(5,4,c,1/2,cap_jut,d,1/2,cap_jut)(dark); fi  % right serif
  222. math_fit(-cap_serif_fit#-.3cap_height#*slant-min(cap_height#*slant,u#),
  223.  max(.5ic#-.5u#,0)); penlabels(1,2,3,4,5); endchar;
  224.  
  225. cmchar "The letter barred U";
  226. beginchar(oct"130",13u#+.5width_adj#,cap_height#,0);
  227. italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#);
  228. if monospace: adjust_fit(cap_serif_fit#-.5u#,cap_serif_fit#-.5u#)
  229. else: adjust_fit(cap_serif_fit#,cap_serif_fit#) fi;
  230. pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0);
  231. pos2'(cap_stem,180); z2'=z2;
  232. pos3(cap_band,-90);
  233. pos4(cap_hair,0); pos5(cap_hair,0);
  234. x1=x2; x3=.5[x1,x5]; x4=x5; x1l=w-x5r;
  235. top y1=top y5=h; y2=y4=1/3h; bot y3r=-o;
  236. lft x1l=hround max(2u,3u-.5cap_stem);
  237. filldraw stroke z1e--z2e; % left stem
  238. filldraw stroke pulled_arc.e(2',3)
  239.  & pulled_arc.e(3,4)&z4e--z5e; % arc and right stem
  240. if serifs: dish_serif(1,2,a,1/3,cap_jut,b,1/3,cap_jut); % left serif
  241.  dish_serif(5,4,c,1/2,cap_jut,d,1/2,cap_jut)(dark); fi  % right serif
  242. math_fit(-cap_serif_fit#-.3cap_height#*slant-min(cap_height#*slant,u#),
  243.  max(.5ic#-.5u#,0));
  244. % bar
  245. pickup rule.nib;
  246. x10 = hround.1u; x11 = hround(w-x10);
  247. y10=.5[y1,y3]=y11;
  248. draw z10--z11;
  249.  penlabels(1,2,3,4,5,10,11); endchar;
  250.  
  251. cmchar "The letter Y";
  252. beginchar(oct"135",13u#,cap_height#,0);
  253. italcorr cap_height#*slant+.45u#;
  254. adjust_fit(cap_serif_fit#,cap_serif_fit#);
  255. numeric left_stem,right_stem,outer_jut,dy,alpha;
  256. left_stem=cap_stem-stem_corr;
  257. right_stem=min(cap_hair if hefty:-2stem_corr fi,left_stem);
  258. outer_jut=.75cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.05u;
  259. x2l=x5l=hround(.5w-.5left_stem); x3r=x5r; y1=y4=h; y2=y3=y5=.4h;
  260. dy=y1-y2; alpha=((x2l-x1l)++dy)/dy;
  261. penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0);
  262. penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0);
  263. penpos5(left_stem,0); penpos6(left_stem,0); x5=x6; y6=0;
  264. z0=whatever[z1r,z2r]=whatever[z3l,z4l];
  265. if y0>y2+cap_notch_cut: y0:=y2+cap_notch_cut;
  266.   fill z0+.5right{up}...{z4-z3}diag_end(3l,4l,1,1,4r,3r)--z5r
  267.     --diag_end(5r,6r,1,1,6l,5l)--z5l--diag_end(2l,1l,1,1,1r,2r){z2-z1}
  268.     ...{down}z0+.5left--cycle; % diagonals and stem
  269. else: fill z0--diag_end(0,4l,1,1,4r,3r)--z5r
  270.     --diag_end(5r,6r,1,1,6l,5l)--z5l
  271.     --diag_end(2l,1l,1,1,1r,0)--cycle; fi  % diagonals and stem
  272. if serifs: numeric inner_jut; pickup tiny.nib;
  273.  prime_points_inside(1,2); prime_points_inside(4,3); prime_points_inside(6,5);
  274.  if rt x1'r+cap_jut+.5u+1<=lft x4'l-cap_jut: inner_jut=cap_jut;
  275.  else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi
  276.  dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut);  % upper left serif
  277.  dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark);  % upper right serif
  278.  dish_serif(6',5,e,1/3,cap_jut,f,1/3,cap_jut); fi  % lower serif
  279. math_fit(.5u#-cap_height#*slant,ic#-4u#);
  280. penlabels(0,1,2,3,4,5,6); endchar;
  281.  
  282. cmchar "Upsilon (Inverted Greek Omega)";
  283. beginchar(oct"126",13u#,cap_height#,0);
  284. italcorr .75cap_height#*slant-.5u#;
  285. adjust_fit(0,0);
  286. pickup tiny.nib; pos1(vair,90); pos2(cap_curve,180);
  287. pos3(vair,180); pos4(cap_curve,0); pos5(vair,0);
  288. x1=.5w; top y1r=h+o; lft x2r=hround u; y2=y4=2/3h; x4=w-x2;
  289. rt x3l=hround(1/3(w+.5u)+.5hair); bot y3=bot y5=0; x5=w-x3;
  290. filldraw stroke z3e{up}...{up}z2e
  291.  & pulled_super_arc.e(2,1)(.5superpull)
  292.  & pulled_super_arc.e(1,4)(.5superpull)
  293.  & z4e{down}...{down}z5e;  % bowl
  294. numeric arm_thickness; path p; p=z3{up}...{up}z2;
  295. arm_thickness=Vround(if hefty:slab+2stem_corr else:.75[slab,cap_vstem] fi);
  296. pickup crisp.nib; pos6(arm_thickness,-90); pos7(fudged.hair,-180);
  297. bot y6r=0; x6=x3; lft x7r=hround .8u; y7=good.y(y6l+.5beak)+eps;
  298. (x,y)=p intersectionpoint((0,y6l)--(w,y6l)); x6l:=x;
  299. arm(6,7,a,.5beak_darkness,-1.2beak_jut);  % left arm and beak
  300. pos8(arm_thickness,-90); pos9(fudged.hair,0);
  301. y8=y6; y9=y7; x8+x6=x9+x7=w; x8l:=w-x6l;
  302. arm(8,9,b,.5beak_darkness,1.2beak_jut);  % right arm and beak
  303. math_fit(0,.5ic#);
  304. picture rvchar;
  305. if slant=0: rvchar=currentpicture rotatedabout((.5w,.5h),180);%
  306.   else: rvchar=currentpicture rotatedabout((.58w,.5h),180);fi%
  307. currentpicture:= rvchar;
  308. penlabels(1,2,3,4,5,6,7,8,9); endchar;
  309.